# 基础镜像
FROM openjdk:8
# 环境变量
ENV APP_HOME=/apps
# 创建容器默认进入的目录
WORKDIR $APP_HOME
# 复制jar包到容器中
COPY ./photo-service.jar ./photo-service.jar
# 暴露端口
EXPOSE 8000
# 启动命令
ENTRYPOINT ["java","-jar","-Xms64m","-Xmx64m","-Xmn16m"]
CMD ["./photo-service.jar"]